all files / Services/ math-helper.service.ts

100% Statements 11/11
100% Branches 0/0
100% Functions 4/4
100% Lines 9/9
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17       30×     29×      
import { Injectable } from '@angular/core';
 
@Injectable()
export class MathHelper {
 
    random(): number {
        return Math.random();
    }
 
    floor(val: number): number {
        return Math.floor(val);
    }
 
    ceil(val: number): number {
        return Math.ceil(val);
    }
}